package bukebianJH.listdemo;

import java.util.Iterator;
import java.util.List;

public class Test1 {
    public static void main(String[] args) {

        List<String> list = List.of("a", "b", "c", "d", "e", "f");

        Iterator<String> it = list.iterator();
        while (it.hasNext()) {
            String s = it.next();
            System.out.println(s);
        }

        System.out.println("================");

    }
}
